package com.itheima.admin.dto;

import com.itheima.admin.pojo.Module;
import com.itheima.admin.pojo.Role;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.Date;
import java.util.UUID;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ModuleDto {
    private String moduleId;
    private String name;
    private String parentId;
    private Integer ctype;
    private Integer state;
    private String curl;
    private String remark;



    public Module toMOdule(){
        Module module =new Module();
        BeanUtils.copyProperties(this,module);
        UUID.randomUUID();
        return module;
    }
}
